<template>
  <div>
    <div class="intro hidden-xs-only" v-loading="loading">
      <el-row>
        <el-col :span="24">
          <el-calendar v-model="value">
            <template slot="dateCell" slot-scope="{ date}">
              <el-popover placement="bottom" trigger="hover">
                <div class="calendar-day" slot="reference">{{ date | datefix }}</div>
                <el-date-picker
                  v-model="value1"
                  type="date"
                  placeholder="选择日期"
                  @change="change"
                >
                </el-date-picker>
              </el-popover>
            </template>
          </el-calendar>
        </el-col>
      </el-row>
    </div>
    <div class="hidden-sm-and-up intro1" v-loading="loading">
      <el-row>
        <el-col :span="24">
          <el-calendar v-model="value"> </el-calendar
        ></el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
import moment from "moment";
export default {
  filters: {
    datefix(date) {
      return moment(date).format("DD");
    },
  },
  mounted() {},
  methods: {
    change(e){
      console.log(e)
      this.value=e
      this.value1=null
    }
  },
  data() {
    return {
      value1:null,
      value: new Date(),
      loading: false,
      totalPage: 0,
      pageSize: 8,
      pageNum: 1,
      allData: null,
      dongshiz: require("../../../../static/images/10.png"),
    };
  },
};
</script>

<style lang="less" scoped>
.fenye {
  margin-top: 40px;
}
.timeCls {
  margin-top: 10px;
}
.mainFont {
  width: 737px;
  height: 30px;
  white-space: nowrap; /*内容超宽后禁止换行显示*/
  overflow: hidden; /*超出部分隐藏*/
  text-overflow: ellipsis; /*文字超出部分以省略号显示*/
}
.mainFont {
  margin-top: 0;
}
.padd {
  padding: 13px;
  cursor: pointer;
  margin-top: 20px;
}
/deep/.el-card__body {
  padding: 0;
}
.donszCl {
  width: 140px;
  height: 150px;
}
.dong {
  margin: 0 auto;
}
.dong1 {
  width: 350px;
}
.englinsh {
  margin-top: 15px;
}
.intro h1 {
  margin-bottom: 20px;
  text-align: center;
}
.intro {
  width: 800px;
  padding: 0;
  margin: 0 auto;
  margin-bottom: 15px;
  margin-top: 15px;
  line-height: 22px;
}
.intro1 {
  padding: 0;
  margin: 0 auto;
  margin-bottom: 15px;
  margin-top: 15px;
  line-height: 22px;
}
</style>